package com.bosssoft.cloud.wechat.core.infra.properties;

import com.bosssoft.cloud.wechat.infrastructure.factory.YamlAndPropertySourceFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * wechat消息模板
 *
 * @author wcy create on 2021/5/17 14:57 下午
 */

@Data
@Component
// 如果报红线不用管
@ConfigurationProperties(prefix = "wx_template.text")
@PropertySource(value = "classpath:config/wx-tmplate.yaml", factory = YamlAndPropertySourceFactory.class)
public class TextTemplates {
    private Map<String, Object> text;
    /**
     * 默认
     */
    private String defaultMsg;

    private String text_1;

    private String text_2;
}
